package com.yfp.tissue.mapper;

import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.tissue.domain.entity.PositionType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PositionTypeMapper {

    List<PositionType> queryPosition(String companyId);

    @DataScope(deptAlias = "p")
    List<PositionType> queryList(PositionType positionType);

    void insert(PositionType positionType);

    void update(PositionType positionType);

    @DataScope(deptAlias = "p")
    List<PositionType> queryById(PositionType positionType);

    void updateEnable(PositionType positionType);
}
